<?php

namespace App\Http\Requests\Admin\JobTemplate;

use App\Http\Requests\Request;

class CreateRequest extends Request{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'job_name' => 'required',
            'jobsort1' => 'required',
            'description' => 'required',
        ];
    }

    public function messages(){
        return [
            'job_name.required' => '岗位模板名称不能为空',
            'jobsort1.required' => '请选择岗位类别',
            'description.required' => '岗位模板描述不能为空',
        ];
    }
}
